;
(function () {
    // 步骤3：创建echarts实例
    let myChart = echarts.init(document.querySelector('.left3'))
    option = {
        color: ['#62c98d', '#2f89cf', '#4cb9cf', '#53b666', '#62c98d'],
        legend: {
            right: 'right'
        },
        series: [{
            name: 'Nightingale Chart',
            type: 'pie',
            radius: [20, 50],
            center: ['50%', '50%'],
            roseType: 'area',
            itemStyle: {
                borderRadius: 5
            },
            startAngle: 100,
            data: [{
                    value: 10,
                    name: 'rose 1'
                },
                {
                    value: 5,
                    name: 'rose 2'
                },
                {
                    value: 15,
                    name: 'rose 3'
                },
                {
                    value: 25,
                    name: 'rose 4'
                },
                {
                    value: 20,
                    name: 'rose 5'
                }
            ],
        }]
    };

    // 步骤5：使用刚指定的配置项和数据显示图表
    myChart.setOption(option)
    window.addEventListener('resize', () => {
        myChart.resize({
            width: 100,
            height: 100
        })
    })
})()